package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.DtsPermission;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsPermissionMapper extends BaseMapper<DtsPermission> {

    /**
     * 批量添加
     * @param permissions   #{param1}#{param2}#{param3}#{param4}
     * @param roleId     #{arg0}#{arg1}#{arg2}#{arg3}
     */
    void insertDtsPermissionByRoleId(
            @Param("permissions") List<String> permissions,
            @Param("roleId") Integer roleId,
            @Param("date") Date date,
            @Param("deleted")  Integer deleted);
}
